package com.draven.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 收支记录实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("finance_record")
public class FinanceRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 类型（1收入 2支出）
     */
    private Integer type;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 分类
     */
    private String category;

    /**
     * 记录时间
     */
    private Date recordTime;

    /**
     * 备注
     */
    private String remark;
} 